/*
 * @Author: zhuxiaoyi
 * @Date: 2023-12-28 17:21:59
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2024-01-22 17:54:37
 * @Description:
 */
import { MidwayConfig } from '@midwayjs/core';
import { Task } from '../entity/task.entity';

export default {
  // use for cookie sign key, should change to your own and keep security
  keys: '1703755319778_1644',
  koa: {
    port: 7001,
  },
  // baseURL: 'D:/nxtProject',
  // baseURL: '/data/nxtProject',
  // appURL:"/EasyInterpretation/bin/EasyInterpretation.exe",
  appURL:"/data/nxtProject/zcognition/zcogapp",
  platform:"linux",
  typeorm: {
    dataSource: {
      default: {
        /**
         * 单数据库实例
         */
        type: 'mysql',
        host: 'localhost',
        port: 3306,
        username: 'root',
        password: 'zyjy2021',
        database: 'segmentation',
        synchronize: false, // 如果第一次使用，不存在表，有同步的需求可以写 true，注意会丢数据
        logging: false,
        // 配置实体模型
        entities: [Task],
      },
    },
  },
} as MidwayConfig;
